package com.pccw.ssh.factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBeanFactory {
	
	private static ApplicationContext ctx;
	static{
		ctx= new ClassPathXmlApplicationContext("applicationContext.xml");
	}
	public static Object getBean(String name){
		return ctx.getBean(name);
	}
}
